package com.carhailing.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carhailing.common.domain.coupons.CouponUseRecord;
import com.carhailing.system.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: Gd
 * @package: com.carhailing.system.mapper
 * @Project: carhailing
 * @Name: UserEnrollInviteMapper
 * @Date: 2024-7-19 20:42
 */
@Mapper
public interface UserEnrollInviteMapper extends BaseMapper<User> {

    User selectUserByPhone(@Param("userPhone") String userPhone);

    void updateInviterCode(@Param("encryptedUrl") String encryptedUrl, @Param("userPhone") String userPhone);

    void insertCouponsToOlderUser(User user);

    void insertCouponsToNewUser(User user1);



//    void insertCouponsToOlderUser(int couponsId, int couponsNum);
}
